<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>报名考试页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="breadcrumb">
                    <li>
                        <a href="${pageContext.request.contextPath}/cs">考前测试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/bm">报名考试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/wd">我的考试</a> <span class="divider">/</span>
                    </li>
                    <%--显示错题--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/ct">错题本</a> <span class="divider">/</span>
                    </li>
                    <%--显示做得好的名称的那一夜--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/phb">排行榜</a> <span class="divider">/</span>
                    </li>
                    <%--推到index,销毁session--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/loginout">注销</a> <span class="divider">/</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success">
                    ${msg}
                </h3>
            </div>
        </div>
    </div>
    <td>请选择您要报考的考试</td>
    <form id="exam" action="${pageContext.request.contextPath}/exam/bm" method="post">
        <input type="hidden" name="USERID" value="${USERID}"/>
        <select id="DAYS" name="DAYS" style="width: 75%;height: 40px; vertical-align: middle; line-height: 40px;">
            <option>选择去考试的日期</option>
            <c:forEach var="i" items='<%=session.getAttribute("Days") %>'>
                <option value="${i.BMCONTENT}" name="DAYS">${i.BMCONTENT }</option>
            </c:forEach>
        </select>
        <select id="TIMES" name="TIMES" style="width: 75%;height: 40px; vertical-align: middle; line-height: 40px;">
            <option>选择去考试的时间</option>
            <c:forEach var="i" items='<%=session.getAttribute("Times") %>'>
                <option value="${i.BMCONTENT}" name="TIMES">${i.BMCONTENT }</option>
            </c:forEach>
        </select>
        <select id="PLACE" name="PLACE" style="width: 75%;height: 40px; vertical-align: middle; line-height: 40px;">
            <option>选择去考试的地点</option>
            <c:forEach var="i" items='<%=session.getAttribute("Places") %>'>
                <option value="${i.BMCONTENT}" name="PLACE">${i.BMCONTENT }</option>
            </c:forEach>
        </select>
        <input type="submit" value="报考"/>
    </form>
    <%--<a href="${pageContext.request.contextPath}/exam/allExam"/>我不报考了，我要看看我的全部考试--%>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success" style="color: darkred">
                    ${errorMsg}
                </h3>
            </div>
        </div>
    </div>
</div>
</body>
</html>